package com.atguigu.bigdata.scala.bean

class Task extends Serializable {

    var start : Int = 0
    var end : Int = 0
    val logic : ()=>Unit = () => {
        for ( i <- start to end ) {
            println(i * 2)
        }
    }
}
